import React from "react";
import { useNavigate } from "react-router-dom";

export default function NotFound() {
  const navigate = useNavigate();
  return (
    <div className="w-screen h-screen flex items-center justify-center flex-col">
      <h1 className=" text-2xl">404</h1>
      <button className="mt-12 w-40" onClick={() => navigate("/login")}>
        返回
      </button>
    </div>
  );
}
